<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
  <div class="box1"></div>
  <div class="box2"></div>
  <script>
    //innerText:不解析文字中的标签 仅回显纯文本 innerHtml:回显文本的同时 解析标签
    document.querySelector('.box1').innerHTML = '<strong> 死装 </strong>'
    document.querySelector('.box2').innerText = '<strong> 死装 </strong>'
  </script>
</body>
</html>